/************************************************************
 * Copyright (C), 2022-2030, dina. Co., Ltd.
 * FileName:        form_inquiry_dlg.h
 * Author:          Dan Yin
 * Date:            2023-01-15
 * Description:     user inquiry window class
 * Version:         1.0.0.0
 **********************************************************/

#ifndef FORM_INQUIRY_DLG_H
#define FORM_INQUIRY_DLG_H

// add necessary includes here
#include "../defines/global.h"

namespace Ui {
class FormInquiryWidget;
}

class FormInquiryWidget : public QWidget
{
    Q_OBJECT

public:
    // Get an instance of "FormInquiryWidget" class, if exist, return it
    static FormInquiryWidget* getInstance(QWidget *pParent = nullptr);

    // Set the inquiry info on window
    void setInquiryInfo(QString sInquiryInfo, int nInquiryType=0);

protected:
    // Triggers an event before it is switch language
    void changeEvent(QEvent *event);

signals:
    // Confirm to do it
    void signalReplayInfo(int nReplyType, bool bAccepted=true);

private slots:
    // Save the basic info after click the button
    void on_pushButton_Confirm_clicked();

    // Close the window after click the button
    void on_pushButton_Cancel_clicked();

private:
    // The default constructor
    explicit FormInquiryWidget(QWidget *parent = nullptr);

    // The default destructor
    virtual ~FormInquiryWidget();

    // After constructing object, initialize the object
    void _Initialze();

    // Init the window style
    void _InitUi();

private:
    Ui::FormInquiryWidget *ui;
};

#endif // FORM_INQUIRY_DLG_H
